/*
 * FavoriteTestPanel.h
 *
 *  Created on: 2012-11-3
 *      Author: tutu
 */

#ifndef FAVORITETESTPANEL_H_
#define FAVORITETESTPANEL_H_

#include <QWidget>
#include <QLineEdit>
#include <QPushButton>
#include "../requester/TFavoriteRequester.h"

class FavoriteTestPanel : public QWidget
{
	Q_OBJECT

// Member
private:
	QLineEdit *_idEdit;
	QPushButton *_favoriteButton;
	QPushButton *_unfavoriteButton;
	TFavoriteRequesterPointer _requester;

// Method
public:
	FavoriteTestPanel(QWidget *parent = 0);
	virtual ~FavoriteTestPanel();

// Slot
private slots:
	void favoriteButtonClicked();
	void unfavoriteButtonClicked();
	void favoriteFinished(bool error);
	void unfavoriteFinished(bool error);
};

#endif /* FAVORITETESTPANEL_H_ */
